let that;
class Tab {
    constructor(id) {
        that = this;
        this.main = document.querySelector(id);
        this.ol = document.querySelector("ol");
        this.init();
    }

    init() {
        this.lis = document.querySelectorAll('li');
        this.span = document.querySelectorAll("span");
        for (let i = 0; i < this.lis.length; i++) {
            this.span[i].ondblclick = that.edit();
        }
    }

    edit() {
        let str = this.span.innerHTML;
        console.log(str);
    }
}

new Tab('#main');
